package cn.nuc.edu.onlinestore.entity;

/**
 * 系统功能实体类
 * 
 * @author 王凯
 * 
 */
public class SysFunction {
	
	/**
	 * 系统功能ID
	 */
	private Integer funid;
	/**
	 * 系统功能名称
	 */
	private String funname;
	/**
	 * 功能地址
	 */
	private String funurl;
	/**
	 * 父功能ID
	 */
	private Integer funpid;
	/**
	 * 父功能名称
	 */
	private String funpname;
	/**
	 * 功能状态
	 */
	private Integer funstate;

	/**
	 * 角色权限
	 */
	private Integer rr;

	public Integer getRr() {
		return rr;
	}

	public void setRr(Integer rr) {
		this.rr = rr;
	}

	public String getFunpname() {
		return funpname;
	}

	public void setFunpname(String funpname) {
		this.funpname = funpname;
	}

	public Integer getFunid() {
		return funid;
	}

	public void setFunid(Integer funid) {
		this.funid = funid;
	}

	public String getFunname() {
		return funname;
	}

	public void setFunname(String funname) {
		this.funname = funname;
	}

	public String getFunurl() {
		return funurl;
	}

	public void setFunurl(String funurl) {
		this.funurl = funurl;
	}

	public Integer getFunpid() {
		return funpid;
	}

	public void setFunpid(Integer funpid) {
		this.funpid = funpid;
	}

	public Integer getFunstate() {
		return funstate;
	}

	public void setFunstate(Integer funstate) {
		this.funstate = funstate;
	}

	@Override
	public String toString() {
		return "SysFunction [funid=" + funid + ", funname=" + funname
				+ ", funurl=" + funurl + ", funpid=" + funpid + ", funpname="
				+ funpname + ", funstate=" + funstate + ", rr=" + rr + "]\n";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((funid == null) ? 0 : funid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SysFunction other = (SysFunction) obj;
		if (funid == null) {
			if (other.funid != null)
				return false;
		} else if (!funid.equals(other.funid))
			return false;
		return true;
	}

}
